var Modal = {
	confirm(config) {
		uni.showModal({
			title: config.title,
			content: config.content,
			success: function (res) {
				if (res.confirm) {
					config.onOk()
					//console.log('用户点击确定');
				} else if (res.cancel) {
					//console.log('用户点击取消');
				}
			}
		});
	}
}
export default Modal